﻿@inherits PageBase
@if (Topics.Any())
{
    @foreach (var topic in Topics)
    {

        <TopicItem Topic="@topic" EnableAlwaysRender="true"></TopicItem>
    }
    <div class="el-table__column-resize-proxy" style="display: none;"></div>
    @if (Math.Ceiling((float)Total / PageSize) > 1 || !NoPaginationOnSinglePage)
    {
        <div class="topic-pagination">
            <BPagination Total="Total" ShowPageCount="ShowPageCount" PageSize="PageSize" CurrentPageChanged="CurrentPageChangedAsync"></BPagination>
        </div>
    }
}
else
{
    <div class="el-table__empty-block" style="height:60px;">
        <span class="el-table__empty-text">
            @(string.IsNullOrWhiteSpace(EmptyMessage) ? "暂无数据" : EmptyMessage)
        </span>
    </div>
}